/**
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.xxl.job.admin.shiro.cacahe;

import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
import org.apache.shiro.cache.CacheManager;
import org.springframework.stereotype.Component;

/**
 * 包装Spring cache抽象
 * <p>
 * Version: 3.0
 */
@Component
public class CustomCacheManager implements CacheManager
{

	@Override
	public <K, V> Cache<K, V> getCache(String name) throws CacheException {
		  return new RedisCache<K,V>();
	}

	
}
